using Web.Model;

namespace Web.DataAccess.Mappings
{
	public class VacancyMapping : EntityMapping<Vacancy>
	{
		public VacancyMapping()
		{
			Map(x => x.ApprovalRequired);
			Map(x => x.Description);
			Map(x => x.Name);
			References(x => x.Project);
			Map(x => x.NeededNumber);
			HasManyToMany(x => x.UsersApplied).Table("UsersApplied_Table");
			HasManyToMany(x => x.UsersApproved).Table("UsersApproved_Table");
		}
	}
}